//
//  BQCollectionViewCell.m
//  weibo
//
//  Created by dllo on 16/6/22.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "BQCollectionViewCell.h"

@implementation BQCollectionViewCell
- (void)dealloc
{
    [_BQImageView release];
    [_BQName release];
    [super dealloc];
}
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.BQImageView = [[UIImageView alloc] init];
        self.BQImageView.backgroundColor = DSRGBA(235, 235, 235, 1);
        
        [self.contentView addSubview:self.BQImageView];
        [_BQImageView release];
    }
    return self;
}

- (void)setBQName:(NSString *)BQName {
    if (_BQName != BQName) {
        [_BQName release];
        _BQName = [BQName retain];
    }
    self.BQImageView.image = [UIImage imageNamed:self.BQName];
    NSLog(@"%@",self.BQImageView.image);
    
    
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.BQImageView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
    
}

@end
